const { app } = require('electron');
const fs = require('fs');

const userDataDir = app.getPath('userData');

// 创建用户数据目录
if (!fs.existsSync(userDataDir)) {
    fs.mkdirSync(userDataDir, {
        recursive: true
    });
}

// 主进程参数
global.sharedObject = {
    argv: process.argv,
};
